/**
 * @author wyj
 * @description home页面的接口方法
*/
import Ajax from './Ajax'

/**
 * 
 * @param {array} ids 角色编码数组
 * @returns  Promise
 */

export const rightApi=(ids)=>Ajax({
url:'/role/list/byids',
method:'GET',
params:{ids},
})

/**
 * @returns Promise  收款统计接口 
 */
export const collApi=()=>Ajax({
    url:'/analysis/collection',
    method:'GET',
    })
    
/**
 * 获取付款数据
 * @returns 
 */
 export const paymentApi = () => {
    return Ajax({
        url: '/analysis/payable',
        method: 'GET'
    })
}